home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
The Datafile PD-CD 1 Issue 2
/
PDCD-1 - Issue 02.iso
/
_comms
/
comms
/
_dialit
/
!DialIt
/
!Help
< prev
next >
Wrap
Text File
|
1990-09-29
|
9KB
|
278 lines
!DialIt, A Mercury-Capable Telephone Dialler
============================================
Current version: !DialIt version 1.04, 29-Sep-90.
Copyright (C) Ian A. Young, 1990
In conjunction with an autodial modem attached to
the serial port, this application allows you to:
* dial telephone numbers for an attached
voice telephone
* dial numbers for a comms program which isn't
clever enough to do it itself, or which breaks
when you give it very long ones
* route calls via your Mercury account, if you
have one.
Modem Configuration
===================
A modem is assumed to be attached to the serial
port. !DialIt doesn't try and set baud rate or
framing parameters, so that it can be used with
your favourite communications program. Therefore,
if you want to use it without such a communications
program, you should configure the BAUD and DATA
parameters to some setting your modem will know.
For example, I have:
*Configure Baud 5 (2400 baud)
*Configure Data 4 (8/N/2)
To dial, !DialIt precedes the number to be dialled
with a string it finds in its !Config file; see this
for more details. To hang up, !DialIt goes through
the following sequence:
1) Drop DTR
2) Wait 0.25 seconds
3) Raise DTR again
4) Wait 0.25 seconds
5) Send the string "ATH<return>" to the modem
This assumes that the modem knows that it should
return to command level at the very least when DTR
is toggled. Some modems hang up, too, when this
is done; that's even better. Please let me know if
!DialIt can't cope with hanging up your modem.
Dialling Numbers
================
!DialIt fetches its telephone directory from the
!Config file inside its application directory. The
supplied file gives some examples of both M and P-
type numbers. 'M' implies a Modem will answer;
'P' a Person. In the latter case, !DialIt puts a
semi-colon on the end of the dial string it sends to
the modem so that the modem won't try and connect
to a modem at the other end. !DialIt can also get
one-off numbers to dial (along with modem/person
information) from a window.
If !DialIt is asked to dial a modem (through any
of the several methods described here) then it will
do so without further ado. If the call fails, the
modem will automatically time out on your behalf and
hang up the line.
The situation with People (non-modems) is slightly
more complicated because TWO "telephones" might be
active ("off-hook") at your end: the modem and the
real telephone. BOTH of these must hang up in order
for the BT exchange to know that the line is idle.
However, the modem will not do this for you, because
it cannot tell when to do it: there is no handy clue
like the absence of a carrier to tell it. !DialIt's
solution to this is to require the USER to tell it
when the modem should be hung up, whenever it is
dialling a person rather than a modem. It does this
by forcing the DialIt main window to pop up in these
cases so that F3 (or the "Done" button in the
window) is available for this operation.
Simple use of !DialIt therefore proceeds as follows:
a) Dialling a bulletin board
1) click "menu" over the !DialIt icon
2) move into the "Dial" submenu
3) select the number you want
b) Dialling a person
1) click "menu" over the !DialIt icon
2) move into the "Dial" submenu
3) select the number you want
4) The DialIt window appears
5) You hear the other phone ringing,
and pick up your own phone (in either
order)
6) You press F3 to hang up the modem and
remove the DialIt window from the screen
7) The phone answers and you begin to speak
Following sections describe the DialIt window and
the DialIt menu in more detail.
DialIt Window
=============
If you click over the !DialIt icon on the icon bar,
or when you ask it to dial a non-modem number from
the menu, a window will open with the following
items:
* "Dial": click on this (or press F1, or Return)
to dial the number being displayed below.
* "Hang Up": click on this (or press F2) to hang
up the phone.
* "Done": click on this (or press F3) to hang up
the phone AND close the window. This is very
useful for telling !DialIt that it should now
release the phone line and vacate the screen.
* "Modem Answers" should be set if a modem will
answer the call, and not set for a person.
* "Number to Dial" is a writeable icon which will
accept a telephone number to dial. If you
press Return while in this icon, the number
will be dialled.
DialIt Menu
===========
Clicking the menu button over the !DialIt icon gives
a menu with the following items:
* "Info" gives some information about !DialIt
* "Hang Up" hangs up the phone (same as the
namesake button in the DialIt window)
* "Redial" dials the last number again (same as
the "Dial" button in the DialIt window)
* "Dial" leads to a submenu made up of the
numbers in !DialIt's telephone directory;
selecting one of these causes that number
to be dialled. If the number represents
a normal phone rather than a modem, the main
DialIt window will open automatically, so that
once the phone is answered you can tell DialIt
to go away by pressing F3 (or selecting the
"Done" button.
* "Quit" causes !DialIt to terminate.
Mercury Access
==============
If you have a Mercury account, !DialIt can be told
about it so that it can route calls it dials over
the Mercury network rather than British Telecom's.
This saves you money on long-distance and internat-
ional calls. You don't need a Mercury-compatable
"blue button" telephone to take advantage of this
service if you use !DialIt. All you need to do to
get a Mercury account is dial 0800 424 194 and ask
for their Mercury 2300 service information pack.
The standing charge is 7.50 per year, plus VAT.
You WILL need a modem which can dial tones for you,
not just pulses, though.
If you have set up the !Config file as described in
the comments therein, all phone numbers starting
with a '0' will be routed via Mercury. There are
some cases where this is the wrong thing to do, and
!DialIt will get the wrong answer:
* Local calls which nevertheless have an STD code
on the beginning; !DialIt doesn't have a method
by which you can tell it about these, at the
moment.
* Probably BT chatlines, cellphones and so on.
I don't do any of this, so I don't know as yet.
For such calls, use the phone's own buttons, but let
me know so that I can think about making !DialIt
smarter. Note that I HAVE told !DialIt about 0800
numbers so that it can dial the Mercury customer
assistance freephone, for example, which I have
included in the example !Config file.
Disclaimer
==========
I have nothing to do with Mercury, except that I am
one of their customers.
Terms of Use
============
You're welcome to make any personal use of this
application you like: as long as you don't make
money by it, I don't expect any from you. Uploading
to BBSes and putting on PD disks counts as personal
use in this context, putting the code into your new
amazing ú100 comms package doesn't. Not that you
would want to. I'd appreciate any additional info
anyone might have in this area, and any suggestions
for improvement. I should warn, though, that it is
now a pretty stable application and I'm bound to be
a bit afraid of disturbing it...
There is no warranty, express or implied, associated
with your use of this application. In particular,
if you are worried about whether !DialIt might one
day wrongly route some telephone call via BT when it
should have used Mercury (or vice versa) then you
will have to buy a blue-button phone and a Mercury-
compatable modem instead of using !DialIt; please
don't attempt to send me your phone bill... :-)
Revision History
================
V1.04 29-Sep-90 Permit spaces in the writeable icon
in the main DialIt window.
V1.03 25-Sep-90 Teach it about 0800 numbers
Make main window be brought up when
a human is dialled, and have it
select itself as well, whenever it
is referenced in this way, so that
F3 will work.
V1.02 ??-Sep-90 Read directory and other config
information from !Config file.
V1.01 ??-Sep-90 Teach it about my Mercury account.
Again, all information hard-wired.
V1.00 ??-Sep-90 Original version with hard-wired
dialling directory.
Contacts
========
You can find me at:
SnailMail: Ian A. Young
91 Causewayside
Edinburgh
EH9 1QG
Email: iay@threel.co.uk
(iay@uk.co.threel if you're on JANET)
Cix: iyoung (not often)
Arcade BBS: #458 (Ian Young) (often)
Archive BBS: #1060 (Ian Young) (not often)